package com.coupon;

import com.facebook.react.ReactActivity;
// splash-screen
import android.os.Bundle;
import org.devio.rn.splashscreen.SplashScreen;

// Orientation 视频 全屏
import android.content.Intent; // <--- import 
import android.content.res.Configuration; // <--- import
public class MainActivity extends ReactActivity {

    /**
     * Returns the name of the main component registered from JavaScript.
     * This is used to schedule rendering of the component.
     */
    @Override
    protected String getMainComponentName() {
        return "coupon";
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {

        SplashScreen.show(this);
        super.onCreate(savedInstanceState);
    }
    // Orientation 视频 全屏
    @Override
      public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        Intent intent = new Intent("onConfigurationChanged");
        intent.putExtra("newConfig", newConfig);
        this.sendBroadcast(intent);
    }
}
